<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>{$admin_setting.admin_name|default=''} {:lang('ADMIN_CENTER')}</title>
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="robots" content="noindex,nofollow">
    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->
    <link href="__TMPL__/public/assets/themes/{:cmf_get_admin_style()}/bootstrap.min.css" rel="stylesheet">
    <link href="__STATIC__/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="__TMPL__/public/assets/themes/{:cmf_get_admin_style()}/login.css" rel="stylesheet">
    <script>
        if (window.parent !== window.self) {
            document.write              = '';
            window.parent.location.href = window.self.location.href;
            setTimeout(function () {
                document.body.innerHTML = '';
            }, 0);
        }
    </script>
</head>
<body>
<div class="wrap">
    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <h1 class="text-center">{$admin_setting.admin_name|default=''}</h1>
                <form class="js-ajax-form" action="{:url('password_reset')}" method="post">

                    <div class="form-group">
                        <input type="text" name="username" placeholder="邮箱" class="form-control"
                               id="js-email-input">
                    </div>

                    <div class="form-group">
                        <div style="position: relative;">
                            <input type="text" name="verification_code" placeholder="邮件验证码" style="width:170px;"
                                   class="form-control">
                            <a class="btn btn-success js-get-email-code"
                               style="width: 163px;position: absolute;top:0;right: 0;"
                               data-wait-msg="[second]秒后才能再次获取" data-email-input="#js-email-input"
                               data-url="{:url('send')}"
                               data-init-second-left="60">获取邮箱验证码</a>
                        </div>
                    </div>

                    <div class="form-group">
                        <input type="password" name="password" placeholder="密码" class="form-control">
                    </div>

                    <div class="form-group">
                        <div style="position: relative;">
                            <input type="text" name="captcha" placeholder="验证码" class="form-control"
                                   style="width: 170px;float: left;margin-right: 30px">
                            <captcha height="38" width="160" font-size="20"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <button class="btn btn-primary btn-block js-ajax-submit" type="submit"
                                style="margin-left: 0px;">确定
                        </button>
                    </div>
                </form>
            </div>
        </div>

    </div>
</div>
<script type="text/javascript">
    //全局变量
    var GV = {
        ROOT: "__ROOT__/",
        WEB_ROOT: "__WEB_ROOT__/",
        JS_ROOT: "static/js/",
        APP: ''/*当前应用名*/
    };
</script>
<script src="__TMPL__/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="__STATIC__/js/wind.js"></script>
<script src="__STATIC__/js/admin.js"></script>
<script src="__STATIC__/js/frontend.js"></script>
<script>
    (function () {
        document.getElementById('input_username').focus();
    })();
</script>
</body>
</html>